#	$OpenBSD: files.sgi,v 1.53 2015/07/08 13:37:31 dlg Exp $
#
# maxpartitions must be first item in files.${ARCH}
#
maxpartitions 16

maxusers 2 8 64

#	Required files

file	dev/cninit.c
file	arch/sgi/sgi/autoconf.c
file	arch/sgi/sgi/bus_dma.c
file	arch/sgi/sgi/conf.c
file	arch/sgi/sgi/disksubr.c			disk
file	arch/sgi/sgi/lock_machdep.c		multiprocessor
file	arch/sgi/sgi/ip22_machdep.c		tgt_indigo | tgt_indigo2 |
						tgt_indy
file	arch/sgi/sgi/ip27_machdep.c		tgt_origin
file	arch/sgi/sgi/ip30_machdep.c		tgt_octane
file	arch/sgi/sgi/ip30_nmi.S			tgt_octane & ddb
file	arch/sgi/sgi/ip32_machdep.c		tgt_o2
file	arch/sgi/sgi/l1.c			tgt_origin
file	arch/sgi/sgi/machdep.c
file	arch/sgi/sgi/mainbus.c
file	arch/sgi/sgi/sginode.c			tgt_origin
file	arch/sgi/sgi/wscons_machdep.c		wsdisplay

# RAM disk for boot
major	{rd = 8}

#
# Media Indepedent Interface (mii)
#
include	"dev/mii/files.mii"

#
#	Machine-independent ATAPI drivers
#

include	"dev/atapiscsi/files.atapiscsi"
include	"dev/ata/files.ata"

include	"dev/pckbc/files.pckbc"

#
#	System BUS types
#
define	mainbus {[nasid = -1]}
device	mainbus
attach	mainbus at root

#	Our CPU configurator
device	cpu
attach	cpu at mainbus

#	Clock device
device	clock
attach	clock at mainbus

# Impact/ImpactSR common code
device	impact: wsemuldisplaydev, rasops32
file	arch/sgi/dev/impact.c			impact |
						impact_gio |
						impact_xbow	needs-flag

#
#	IP20/22/24/26/28 specific devices
#
define	giobus {}
device	imc: giobus, eisabus
attach	imc at mainbus
file	arch/sgi/localbus/imc.c			imc

device	int
attach	int at mainbus
file	arch/sgi/localbus/int.c			int

device	tcc
attach	tcc at mainbus
file	arch/sgi/localbus/tcc.c			tcc	needs-flag

include "arch/sgi/gio/files.gio"
include "arch/sgi/hpc/files.hpc"

#
#	O2 MACE localbus autoconfiguration devices
#
define	macebus {[base = -1]}
device	macebus
attach	macebus at mainbus
file	arch/sgi/localbus/macebus.c		macebus

#
#	Origin200/Origin2000 node configuration enumerator, and
#	Octane XBOW mux bridge
#
include "arch/sgi/xbow/files.xbow"

include "dev/onewire/files.onewire"

#
#	PCI Bus bridges
#

device	macepcibr {} : pcibus
attach	macepcibr at macebus
file	arch/sgi/pci/macepcibridge.c		macepcibr

#	Use machine independent SCSI driver routines
include	"scsi/files.scsi"
major	{sd = 0}
major	{cd = 3}

#
#	EISA Bus support
#

include	"dev/eisa/files.eisa"
file	arch/sgi/sgi/eisa_machdep.c		eisa

#
#	PCI Bus support
#

include	"dev/pci/files.pci"
file	arch/sgi/pci/pci_machdep.c		pci

# Sun HME Ethernet controllers
device	hme: ether, ifnet, mii, ifmedia
file	dev/ic/hme.c				hme
attach	hme at pci with hme_pci
file	dev/pci/if_hme_pci.c			hme_pci

# IOC3
define	ioc {[base = -1]}
device	ioc: onewirebus
attach	ioc at pci
file	arch/sgi/pci/ioc.c			ioc

# IOC4
define	iof {[base = -1]}
device	iof
attach	iof at pci
file	arch/sgi/pci/iof.c			iof

# IOC3/4 serial ports
attach	com at ioc with com_ioc
file	arch/sgi/dev/com_ioc.c			com_ioc
attach	com at iof with com_iof
file	arch/sgi/dev/com_iof.c			com_iof

# IOC3 onboard Ethernet
device	iec: ether, ifnet, ifmedia, mii
attach	iec at ioc
file	arch/sgi/dev/if_iec.c			iec

# IOC3/4 PS/2 controller
device	iockbc: pckbcslot
attach	iockbc at ioc with iockbc_ioc
attach	iockbc at iof with iockbc_iof
file	arch/sgi/dev/iockbc.c			iockbc |
						iockbc_ioc | iockbc_iof
							needs-flag

# DS1687 Time-Of-Day calendar device
device	dsrtc
attach	dsrtc at ioc with dsrtc_ioc
attach	dsrtc at iof with dsrtc_iof
attach	dsrtc at macebus with dsrtc_macebus
file	arch/sgi/dev/dsrtc.c			dsrtc

# GBE framebuffer
device	gbe: wsemuldisplaydev, rasops8, rasops16, rasops32
attach	gbe at mainbus
file	arch/sgi/dev/gbe.c			gbe	needs-flag

# 16[45]50-based "com" ports on localbus
attach	com at macebus with com_macebus
file	arch/sgi/localbus/com_lbus.c		com_macebus

# MACE MAC-110 ethernet
device	mec: ether, ifnet, ifmedia, mii
attach	mec at macebus
file	arch/sgi/dev/if_mec.c			mec

# Moosehead A/V Board audio
device	mavb: audio
attach	mavb at macebus
file	arch/sgi/dev/mavb.c			mavb

# MACE PS/2 Controller
device	mkbc: pckbcslot
attach	mkbc at macebus
file	arch/sgi/dev/mkbc.c			mkbc	needs-flag

# Power button
device	power
attach	power at macebus with power_macebus
attach	power at mainbus with power_mainbus
file 	arch/sgi/dev/power.c			power |
						power_macebus | power_mainbus
							needs-flag

# Raster operations
include	"dev/rasops/files.rasops"
include	"dev/wsfont/files.wsfont"

#
# wscons console
#
include	"dev/wscons/files.wscons"

#
# CardBus and PCMCIA bus support
#
include	"dev/cardbus/files.cardbus"
include	"dev/pcmcia/files.pcmcia"

#
# Machine-independent USB drivers
#
include	"dev/usb/files.usb"

#
# Number-In-a-Can containers
#
# Ethernet address
device	owmac
attach	owmac at onewire
file	arch/sgi/dev/owmac.c			owmac

# Serial numbers
device	owserial
attach	owserial at onewire
file	arch/sgi/dev/owserial.c			owserial
file	arch/sgi/dev/owmem_subr.c		owmac | owserial

# IP35 SPD memory information
attach	spdmem at mainbus with spdmem_mainbus
file	arch/sgi/dev/spdmem_mainbus.c		spdmem_mainbus
